package com.cloud.pole.user.biz.account;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ace.cache.annotation.Cache;
import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.mapper.account.UserAccountBankMapper;
import com.cloud.pole.user.model.entity.account.UserAccountBank;
import com.cloud.pole.user.model.entity.account.UserWithdraw;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserAccountBankBiz extends BaseBiz<UserAccountBankMapper, UserAccountBank> {

	public UserAccountBank selectByPrimaryKey(Integer id) {
		return super.selectById(id);
	}
	
	public UserAccountBank selectByUserId(Long userId) {
		UserAccountBank entity = new UserAccountBank();
		entity.setUserId(userId);
		return super.selectOne(entity);
	}
	
	public void updateByPrimaryKey(UserAccountBank entity) {
		super.updateById(entity);
	}
	
	public void insertSelective(UserAccountBank entity) {
		super.insertSelective(entity);
	}
}
